package com.hunan.api.catv.service.impl.pgc;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.pgc.PgcNewsMapper;
import com.hunan.api.catv.entity.po.PgcNews;
import com.hunan.api.catv.entity.vo.PgcNewsVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jiang zhuan
 * @version 1.0
 * @description 描述
 * @date 2020/10/13 0013
 * @package com.hunan.api.catv.service.impl.pgc
 * @company 湖南有线
 */
@Service
public class PgcNewsService extends CommonService<PgcNews, PgcNewsVo, String> {

    @Autowired
    public PgcNewsMapper pgcNewsDao;

    @Override
    public BaseDao<PgcNews, PgcNewsVo, String> getBaseDao() {
        return pgcNewsDao;
    }

    public List<String> listIdsForPGC(PgcNews news) {
        return pgcNewsDao.listIdsForPGC(news);
    }
}
